package com.kgis.map.layer.ogc {
   import com.kgis.map.layer.Layer;
   import com.kgis.map.layer.params.ogc.WMSParams;

   import flash.net.URLRequestMethod;
   import com.kgis.map.layer.ogc.WMS;

   /**
    * Instances of WMSC are used to display data from OGC Web Mapping Services requested as tiles.
    */
   public class WMSC extends WMS {
      public function WMSC(id:int, name:String = "", url:String = "", layers:String = "") {
         super(id, name, url, layers);
         this.singleTile = false;
         this.xBuffer = 2;
         this.yBuffer = 1;
         this.tweenOnZoom = true;
         (this.params as WMSParams).tiled = true;
      }

      override public function clone():Layer{
         var wmsc:WMSC = new WMSC(this.id,this.name,this.url);
         return wmsc;
      }

   }
}

